<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
/**
 *    打印相关
*/ 
@media print 
{
    .notprint 
    {
        display:none;
    }
    .PageNext
    {
        page-break-after:always;
    }     
}
</style>
<style>
.info{
	width:950px;
	font-size:14px;
	 }
.h50,.h30,.h20,.h10,.h5,.h1{width:100%; overflow:hidden; clear:both}
.h1{ height:1px; }
.h5{ height:5px; }
.h10{ height:10px; }
.h20{ height:20px; }
.h30{ height:30px; line-height:30px}
.h50{ height:50px}	 
.order_sn{
	text-align:center;
    }
.top_info{
	}
.top_info_left{
	float:left;
	width:50%;
}
.top_info_left table {
	width:85%;
	text-align:center;
}
.top_info_right{
	float:left;
	width:49%;
}
.td_right{
	width:25%;
	text-align:right;
    }
td{
	padding-top:8px;
}	
.body_info_div{
/*	border:1px solid red;*/
	float:left;
    width:24.8%;
	border-right:1px solid #000;
}
.body_info_div_2{
/*	border:1px solid red;*/
	float:left;
    width:49.6%;
	border-right:1px solid #000;
}
.info_title{
	font-weight:bold;
	text-align:center;
	border-bottom:1px solid #000;
	padding-bottom:5px;
    font-size:24px;	
	}
.info_content{
	margin-left:10px;
}
.bottom_info{
	border-top:1px solid #000;
	}
.bottom_info_left{
	float:left;
	width:40%;
}
.bottom_info_right{
	float:left;
	width:59%;
}
.zt{/*background-image:url("/admin/Tpl/order/black_dot.png");*/background-color:#FFFFFF; height:45px; line-height:50px; margin-left:-3px; text-align:center;font-size:50px;font-weight:bold;}
</style>
</head>
<body>

<div class="info">
    <div class="order_sn">订单号：<?php echo $orderfigure['order_id'].'-'.$order_item_id;?>|货号：<?php echo $order['product_sn'];?>|<font">商品名称：<?php echo $orderfigure['product_name']?></font></div>
    <div class="h10">&nbsp;</div>
    <div class="top_info">
       <div class="top_info_left">
           <div>客户名称:<?php echo $measure['measure_name']?></div>
              <table>
                  <tr>
                     <td></td><td>编号</td><td>成分</td><td>幅宽</td><td>耗料</td>
                  </tr>
                  <tr>   
                     <td class="td_right">面料</td>
                     <td><?php echo $product['catid']==2172?"":$suppliers['suppliers_name']?></td>
                     <td><?php echo $product['catid']==2172?"":$suppliers['lining_name']?></td>
                     <td><?php echo $product['catid']==2172?"":$suppliers['breadth']?></td>
                     <td><?php echo $product['catid']==2172?"":$suppliers['material']?></td>
                  </tr>
                   <?php if($orderfigure['attr_array'][242]['cn_attr_value_name']){?>
                   <tr>
                     <td class="td_right">零剪面料编号</td>
                     <td colspan="4" align="left"><?php print_r($orderfigure['attr_array'][242]['cn_attr_value_name']);?></td>
                  </tr>
                  <?php }?>
                  <tr>                       
                     <td class="td_right">撞色面料</td>
                     <td></td><td></td><td></td><td></td>
                  </tr>
				<?php 
                    $lining_db = D('lining');
                    $lining_info = $lining_db->where(array('suppliers_name'=>$orderfigure['attr_array'][$key]['cn_attr_value_name']))->find();
                ?>                  
                  <tr>                       
                     <td class="td_right">里料</td>
                     <td><?php echo isset($orderfigure['attr_array'][$key]['cn_attr_value_name'])?$orderfigure['attr_array'][$key]['cn_attr_value_name']:' '?></td>
                     <td><?php echo isset($lining_info['lining_name'])?$lining_info['lining_name']:' '?></td>
                     <td><?php echo isset($lining_info['lining_name'])?$lining_info['breadth']:' '?></td>
                     <td><?php echo isset($lining_info['lining_name'])?$lining_info['material']:' '?></td>
                  </tr>
                  <tr>                       
                     <td class="td_right"><font style="font-size:22px;">工艺类型</font></td>
                     <td><font style="font-size:22px;"><?php echo $order['process_type'];?></font></td>
                     <td></td>
                     <td></td>
                     <td></td>
                  </tr>
              </table>
       </div>
       <div class="top_info_right">
           <div><img src="/statics/barcodegen/code.php?text=<?php echo $Barcode;?>" /></div>
           <div style="margin-top: 10px;">交货日期：</div>
       </div>
    </div>
    <div class="h1" style=" border-top:1px solid #000;">&nbsp;</div>    
    <div>  
        <div>纽扣( <?php echo isset($orderfigure['attr_array']['200'])?$orderfigure['attr_array']['200']['cn_attr_value_name']:$orderfigure['button_name'];?> ): 
          <?php foreach ($orderfigure['buttonArr'] as $key => $val):?>
          &nbsp;&nbsp;&nbsp;&nbsp;<?php echo $key == '18Ljsk' ? '18L金属扣' : $key;?> <?php echo $val;?> [&nbsp;&nbsp;]
          <?php endforeach;?>
          &nbsp;&nbsp;&nbsp;&nbsp; 面料标: &nbsp;&nbsp;<?php echo $suppliers['suppliers_desc']?> [&nbsp;&nbsp;]</div>
        <div>其他( <?php echo $orderfigure['categoryName']?> ): &nbsp;&nbsp;&nbsp;&nbsp;领标 [&nbsp;&nbsp;] &nbsp;&nbsp;&nbsp;&nbsp;吊牌/吊绳 [&nbsp;&nbsp;] &nbsp;&nbsp;&nbsp;&nbsp;辅标 [&nbsp;&nbsp;]</div>
    </div>
    <div class="h1" style=" border-top:1px solid #000;">&nbsp;</div>   
    <?php 
	$data2 = unserialize($measure['measure_data']);
    ?>
    <div class="body_info">
        <div class="body_info_div">
            <div class="info_title">客户尺寸</div>
            <div class="info_content">
            <div class="h20">&nbsp;</div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>性别</td><td><?php echo $measure['gendername']?></td>
                </tr>
                 <tr>
                     <td>身高</td><td><?php echo $data2['height']['cm']?></td>
                 </tr>
                 <tr>
                     <td>体重</td><td><?php echo $data2['weight']['kg']?></td>
                 </tr>
                 <tr>    
                     <td>年龄</td><td><?php echo $data2['age']?></td>
                 </tr>
                 <tr>    
                     <td>肩</td><td><?php if($data2['shoulder']['type']==1){echo "方肩";}elseif($data2['shoulder']['type']==2){echo "介于高和正常";}elseif($data2['shoulder']['type']==3){echo "正常";}elseif($data2['shoulder']['type']==4){echo "介于正常和溜肩";}elseif($data2['shoulder']['type']==5){echo "溜肩";}else{echo '正常';}?></td>
                 </tr>
                 <tr>  
                     <td>胸</td><td><?php  if($data2['chest']['type']==1){echo "胸肌发达";}elseif($data2['chest']['type']==2){echo "介于发达和正常";}elseif($data2['chest']['type']==3){echo "正常";}elseif($data2['chest']['type']==4){echo "介于正常和肥胖";}elseif($data2['chest']['type']==5){echo "厚胸";}else{echo '正常';} ?></td>
                 </tr>
                 <tr>    
                     <td>肚</td><td><?php  if($data2['stomach']['type']==1){echo "平肚";}elseif($data2['stomach']['type']==2){echo "介于平腹和微凸";}elseif($data2['stomach']['type']==3){echo "正常";}elseif($data2['stomach']['type']==4){echo "介于微凸和凸腹";}elseif($data2['stomach']['type']==5){echo "凸肚";}else{echo '正常';}?></td>
                 </tr>
                 <tr>  
                     <td>背</td><td><?php if($data2['posture']['type']==1){echo "平背";}elseif($data2['posture']['type']==2){echo "微挺";}elseif($data2['posture']['type']==3){echo "正常";}elseif($data2['posture']['type']==4){echo "微驼";}elseif($data2['posture']['type']==5){echo "驼背";}else{echo '正常';}?></td>
                 </tr>                 
            </table>        
            </div>
        </div>
       
        <?php foreach($size_data_arr as $key=>$val):?>
        <div class="body_info_div">
            <div class="info_title">
            <?php echo $val['size_type_name'];?>
            <span style=" font-weight:normal;">&nbsp;&nbsp;&nbsp;&nbsp;尺码:<?php echo $val['chima'];?></span>
            </div>
            <div class="info_content">
                 <div class="h5">&nbsp;</div>
                 <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                     <tr>
                         <td></td>
                         <td>成衣尺寸</td>
                         <td>MTM尺寸</td>
                     </tr>
                     <?php foreach($val['size_name'] as $k=>$v):?>
                         <?php if($v['cysize'] !="" || $v['mtmsize'] !=""){ ?>
                             <tr>
                                 <td><?php echo $v['size_name'];?></td>
                                 <td><?php echo $v['cysize'];?></td>
                                 <td><?php echo $v['mtmsize'];?></td>
                             </tr>
                         <?php } ?>
                     <?php endforeach;?>
                     <tr>
                         <td></td>
                         <td>MTM变更</td>
                         <td></td> 
                     </tr>            
                     <?php foreach($val['mtmadd'] as $k=>$v):?>
                         <?php if(!empty($v)){?>
                             <tr>
                                 <td></td>
                                 <td><?php echo $v['size_name'] ? $v['size_name'] : '&nbsp;';?></td>
                                 <td><?php echo $v['size_val'];?></td>
                             </tr>
                         <?php } ?>
                     <?php endforeach;?>
                  </table>
            </div>
         </div>
         <?php endforeach;?>    
    </div>
    <div class="h1">&nbsp;</div>
    <div class="body_info">
        <div class="body_info_div_2">
            <div class="info_title"></div>
            <div class="info_content">
            <div class="h20" style="height:30px;">&nbsp;货号：<?php echo $order['product_sn'];?>|<font">商品名称：<?php echo $orderfigure['product_name']?></font></div>
             <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
             <tr>
                <td>珠边线</td>
                <td><?php echo isset($orderfigure['attr_array'][208])?$orderfigure['attr_array'][208]['cn_attr_value_name']:'没有';?></td>
                <td>领型</td>
                <td><?php echo isset($orderfigure['attr_array'][93])?$orderfigure['attr_array'][93]['cn_attr_value_name']:'没有';?><?php if(isset($orderfigure['attr_array'][239])){ echo "--(".$orderfigure['attr_array'][239]['cn_name'].":".$orderfigure['attr_array'][239]['cn_attr_value_name'].")"; }?></td>
              </tr>
              <tr>
              <?php if(!isset($orderfigure['attr_array'][251])){?>
                <td><?php echo $orderfigure['attr_array']['114']['cn_name'];?></td>
                <td><?php echo isset($orderfigure['attr_array']['114'])?$orderfigure['attr_array']['114']['cn_attr_value_name']:'没有';?></td>
               <?php }else{?>
                <td><?php //echo $orderfigure['attr_array']['118']['cn_name'];?></td>
                <td><?php //echo isset($orderfigure['attr_array']['118'])?$orderfigure['attr_array']['118']['cn_attr_value_name']:'没有';?></td>
               <?php }?>
                <td>门襟扣</td>
                <td><?php echo isset($orderfigure['attr_array'][95])?$orderfigure['attr_array'][95]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <!--<td><?php if(!isset($orderfigure['attr_array']['251'])){ ?>插花眼<?php } ?></td> -->
                <!-- <td><?php  if(!isset($orderfigure['attr_array']['251'])){ echo isset($orderfigure['attr_array'][118])?$orderfigure['attr_array'][118]['cn_attr_value_name']:'不做插花眼'; } ?></td>-->

                  <td><?php if(isset($orderfigure['attr_array']['118'])){ ?>插花眼<?php } ?></td>
                  <td><?php echo isset($orderfigure['attr_array'][118])?$orderfigure['attr_array'][118]['cn_attr_value_name']:'不做插花眼';  ?></td>
                <td>上衣口袋</td>
                <td><?php echo isset($orderfigure['attr_array'][96])?$orderfigure['attr_array'][96]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>绣字第一行</td>
                <td><?php echo isset($orderfigure['attr_array'][99])?$orderfigure['attr_array'][99]['cn_attr_value_name']:'没有';?></td>
                <td>挂面</td>
                <td><?php echo isset($orderfigure['attr_array'][98])?$orderfigure['attr_array'][98]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>绣字第二行</td>
                <td><?php echo isset($orderfigure['attr_array'][100])?$orderfigure['attr_array'][100]['cn_attr_value_name']:'没有';?></td>
                <td>智能袋</td>
                <td><?php echo isset($orderfigure['attr_array'][207])?$orderfigure['attr_array'][207]['cn_attr_value_name']:'无';?></td>
              </tr>
              <tr>
                <td><!-- 绣字字体--></td>
                <td><!-- <?php echo isset($orderfigure['attr_array'][101])?$orderfigure['attr_array'][101]['cn_attr_value_name']:'没有';?> --></td>
                <td>后叉</td>
                <td><?php echo isset($orderfigure['attr_array'][94])?$orderfigure['attr_array'][94]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td><!-- 绣字颜色 --></td>
                <td><!-- <?php echo isset($orderfigure['attr_array'][102])?$orderfigure['attr_array'][102]['cn_attr_value_name']:'没有';?>--></td>
                <td>袖叉</td>
                <td><?php echo isset($orderfigure['attr_array'][206])?$orderfigure['attr_array'][206]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>字体大小</td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr>
                <td>领底呢</td>
                <td><?php echo isset($orderfigure['attr_array']['115'])?$orderfigure['attr_array']['115']['cn_attr_value_name']:'顺色';?></td>
                <td>里布</td>
                <td><?php echo isset($orderfigure['attr_array'][104])?$orderfigure['attr_array'][104]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td></td>
                <td></td>
                <td>手巾袋</td>
                <td><?php echo isset($orderfigure['attr_array'][97])?$orderfigure['attr_array'][97]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td></td>
                <td></td>
                <td>袖肘贴</td>
                <td><?php echo isset($orderfigure['attr_array']['116'])?$orderfigure['attr_array']['116']['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td></td>
                <td></td>
                <td>笔袋</td>
                <td><?php echo isset($orderfigure['attr_array'][113])?$orderfigure['attr_array'][113]['cn_attr_value_name']:'左';?></td>
              </tr>
              <?php if(isset($orderfigure['attr_array']['251'])){ ?>
              <tr>
                <td></td>
                <td></td>
                <td><?php echo $orderfigure['attr_array']['251']['cn_name'];?></td>
                <td><?php echo $orderfigure['attr_array']['251']['cn_attr_value_name']."--(".$orderfigure['attr_array']['252']['cn_attr_value_name'].")";?></td>
              </tr>
              <?php } ?>
            </table>            
            </div>
        </div>
        <div class="body_info_div">
            <div class="info_title"></div>
            <div class="info_content">
            <div class="h20">&nbsp;</div> 
             <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
             <tr>
                <td>裤前褶</td>
                <td><?php echo isset($orderfigure['attr_array'][108])?$orderfigure['attr_array'][108]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>调节袢</td>
                <td><?php echo isset($orderfigure['attr_array'][211])?$orderfigure['attr_array'][211]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>后袋型</td>
                <td><?php echo isset($orderfigure['attr_array'][110])?$orderfigure['attr_array'][110]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>脚口翻边</td>
                <td><?php echo isset($orderfigure['attr_array'][210])?$orderfigure['attr_array'][210]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>裤腰头</td>
                <td><?php echo isset($orderfigure['attr_array'][109])?$orderfigure['attr_array'][109]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>裤袢</td>
                <td>有<?php //echo isset($orderfigure['attr_array'][213])?$orderfigure['attr_array'][213]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>背带扣</td>
                <td><?php echo isset($orderfigure['attr_array'][212])?$orderfigure['attr_array'][212]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>裤子长度</td>
                <td colspan="2"><?php echo isset($orderfigure['attr_array'][148])?$orderfigure['attr_array'][148]['cn_attr_value_name']:'';?></td>
              </tr>
              <?php if(isset($orderfigure['attr_array']['251'])){ ?>
              <tr>
                <td><?php echo $orderfigure['attr_array']['251']['cn_name'];?></td>
                <td>
                	<?php 
						if($orderfigure['attr_array']['251']['cn_attr_value_name']=="全部撞色"){
							echo $orderfigure['attr_array']['251']['cn_attr_value_name']."---";
						}
						if($orderfigure['attr_array']['251']['attr_value_id']==1469){
							echo "顺色";
						}else{
							echo $orderfigure['attr_array']['252']['cn_attr_value_name'];
						}
						
					?>
                </td>
              </tr>
              <?php } ?>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table>                    
            </div>
        </div>
         <div class="body_info_div">
            <div class="info_title"></div>
            <div class="info_content">
            <div class="h20">&nbsp;</div> 
             <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
             <tr>
                <td>领型</td>
                <td><?php echo isset($orderfigure['attr_array'][105])?$orderfigure['attr_array'][105]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>后背</td>
                <td><?php echo isset($orderfigure['attr_array'][107])?$orderfigure['attr_array'][107]['cn_attr_value_name']:'没有';?></td>
            
              </tr>
              <tr>
                <td>马夹扣型</td>
                <td><?php echo isset($orderfigure['attr_array'][106])?$orderfigure['attr_array'][106]['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>
                <td>侧缝叉</td>
                <td><?php echo isset($orderfigure['attr_array'][209])?$orderfigure['attr_array'][209]['cn_attr_value_name']:'默认有叉';?></td>
              </tr>
              <tr>
                <td>马甲口袋</td>
                <td><?php echo isset($orderfigure['attr_array'][198])?$orderfigure['attr_array'][198]['cn_attr_value_name']:'无';?></td>
              </tr>
              <tr>
                <td>手巾袋</td>
                <td><?php echo isset($orderfigure['attr_array'][202])?$orderfigure['attr_array'][202]['cn_attr_value_name']:'无';?></td>
              </tr>
               <?php if(isset($orderfigure['attr_array']['251'])){ ?>
              <tr>
                <td><?php echo $orderfigure['attr_array']['251']['cn_name'];?></td>
                <td>
                	<?php 
						if($orderfigure['attr_array']['251']['cn_attr_value_name']=="全部撞色"){
							echo $orderfigure['attr_array']['251']['cn_attr_value_name']."---";
						}
						if($orderfigure['attr_array']['251']['attr_value_id']==1469){
							echo "顺色";
						}else{
							echo $orderfigure['attr_array']['252']['cn_attr_value_name'];
						}
						
					?>
                </td>
              </tr>
              <?php } ?>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table>                   
            </div>
        </div>     
    </div>
    <div class="h10">&nbsp;</div> 
    <div class="bottom_info">
       <div class="h5">&nbsp;</div>
        <div>试衣:</div>
        <div class="zt" style="font-family:&quot;Arial&quot;;color:#000000;">
            <?php echo isset($orderfigure['attr_array']['318'])?$orderfigure['attr_array']['318']['cn_attr_value_name']:'';?>
        </div>
        <div>绣字字体:<?php echo isset($orderfigure['attr_array']['342'])?$orderfigure['attr_array']['342']['cn_attr_value_name']:'没有';?></div>

        <div>绣字颜色: <?php echo isset($orderfigure['attr_array']['341'])?$orderfigure['attr_array']['341']['cn_attr_value_name']:'没有';?></div>
        <!--
       <div>绣字图片:</div>
<?php if($font_1): ?><div class="zt" style='font-family:"<?php echo $font_zt;?>";color:#000000;<?php /*echo substr($font_color, strpos($font_color, '#'));*/?>;'><?php echo $font_1;?></div><?php endif;?>
<?php if($font_2): ?><div class="zt" style='font-family:"<?php echo $font_zt;?>";color:#000000;<?php /*echo substr($font_color, strpos($font_color, '#'));*/?>;'><?php echo $font_2;?></div><?php endif;?>
    -->
        <div style="font-size: 16px;font-weight: bold;">特殊要求:</div>
        <p style="font-size: 16px;"><?php if($orderfigure['special_request']!="" ){echo $orderfigure['special_request'];}else{ echo $orderfigure['special_request_1']; }?></p>
    </div>
<table width="100%" border="0">    
    <tr>
        <td align="center"><div class="notprint"><?php if(!$noshow):?> <input type="button" class="button" onclick="javascript:window.print();" value="打印"><?php endif;?>    </div>   </td>
    </tr>
</table>  
         
</div>
</body>
</html>
